/**
 * Meituan.com Inc.
 * Copyright (c) 2010-2018 All Rights Reserved.
 */

import lombok.*;
import lombok.extern.java.Log;

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StringReader;

/**
 * <p></p>
 *
 * @author tuyou@meituan.com
 * @version v0.1 2018-11-25 2:10 PM tuyou Exp $$
 */
@Value
@Log
@Getter
public class Vo {

    private String name;
    private int age;

    public static void main(String[] args) {

        val vo = new Vo("myName", 100);
        log.info(vo.toString());

        var vo2 = new Vo("tuyou", 150);
        vo2 = new Vo("tuyou", 150);

        try {
            @Cleanup InputStreamReader sr = new InputStreamReader(System.in);
            char c = 0;
            while ((c = (char)sr.read()) != 0) {
                System.out.println(c);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}